package com.xd.core.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xd.core.system.entity.Dictionary;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 字典表 Mapper 接口
 * </p>
 *
 * @author SJ
 * @since 2023-03-24
 */
public interface DictionaryMapper extends BaseMapper<Dictionary> {


    List<Dictionary> listByType(String type);

    List<Dictionary> listByTypeCompany(@Param("type") String type);

    List<Dictionary> listByTypes(List<String> types);

    List<Dictionary> listByTypeAndCodes(List<String> codes, String type);

    void insertBatch(ArrayList<Dictionary> tempList);
}
